package com.cloudkinto.dto.stock.rent;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class StockAgeDto {

    private Long companyId;

    private Long tenantId;
    private Long whId;
    @ApiModelProperty("1 产品库存 2箱库存")
    private int type;
//    private Long productId;
//    private String boxTypeNumber;

    private String sku;
    private String orderType;
    private Long orderId;

    private int stockAttribute;
//    private Date stockCreateTime;

    private int quantity;

    private int age;

    @ApiModelProperty("高 公制")
    private BigDecimal height;

    @ApiModelProperty("高 英制")
    private BigDecimal heightBs;


    @ApiModelProperty("长 公制")
    private BigDecimal length;

    @ApiModelProperty("长 英制")
    private BigDecimal lengthBs;

    @ApiModelProperty("宽 公制")
    private BigDecimal width;


    @ApiModelProperty("宽 英制")
    private BigDecimal widthBs;

    @ApiModelProperty("重量 公制")
    private BigDecimal weight;

    @ApiModelProperty("重量 英制")
    private BigDecimal weightBs;

    public int getAge() {
        if (age <= 0) return 1;
        return age;
    }
}
